package com.shouldibuythis.android.common;

import android.content.Context;
import android.content.SharedPreferences;

import com.koushikdutta.async.http.socketio.SocketIOClient;

import org.json.JSONArray;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.Vector;

import android.content.Context;
import android.content.SharedPreferences;

import com.koushikdutta.async.http.socketio.SocketIOClient;

import org.json.JSONArray;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.Vector;

/**
 * Created by JOSE on 6/27/13.
 */
public class GlobalInfo {

    private String CHAT_HOST_URL = "http://10.20.218.215:5002/";

    private Context context;
    private SocketIOClient chatClient;

    private static GlobalInfo instance = null;

    private GlobalInfo(Context context){
        this.context = context;
    }

    public static GlobalInfo getInstance(Context context){
        if(instance == null){
            instance = new GlobalInfo(context.getApplicationContext());
        }

        return instance;
    }

    public String getChatHostUrl() {
        return CHAT_HOST_URL;
    }

    public void setChatHostUrl(String CHAT_HOST_URL) {
        this.CHAT_HOST_URL = CHAT_HOST_URL;
    }

    public SocketIOClient getChatClient(){
        return chatClient;
    }

    public void setChatClient(SocketIOClient chatClient){
        this.chatClient = chatClient;
    }
}
